package com.cpecc.model.system;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cpecc.model.wuzi.BaoFei;
import com.cpecc.model.wuzi.ShenQing;
import com.cpecc.model.wuzi.WeiXiu;
import com.cpecc.model.wuzi.WuZi;
import com.cpecc.model.wuzi.YiJiao;
@Entity
@Table(name = "SYS_TODO")
public class ToDo implements Serializable{	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3968594672421001173L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@ManyToOne
	@JoinColumn(name="USER_ID")
	private User user;
	
	@ManyToOne
	@JoinColumn(name="HUANJIE_ID")
	private HuanJie huanJie;
	
	@Column
	private Date createDate;
	
	@Column(length=16)
	private String type;
	
	@Column(length=16)
	private String task;
	
	@ManyToOne
	@JoinColumn(name="SHENQING_ID")
	private ShenQing shenQing;
	
	@ManyToOne
	@JoinColumn(name="YIJIAO_ID")
	private YiJiao yiJiao;
	
	@ManyToOne
	@JoinColumn(name="WEIXIU_ID")
	private WeiXiu weiXiu;
	
	@ManyToOne
	@JoinColumn(name="BAOFEI_ID")
	private BaoFei baoFei;
	
	@ManyToOne
	@JoinColumn(name="WUZI_ID")
	private WuZi wuZi;
	
	@Column(length=32)
	private String xinRenId;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public HuanJie getHuanJie() {
		return huanJie;
	}

	public void setHuanJie(HuanJie huanJie) {
		this.huanJie = huanJie;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTask() {
		return task;
	}

	public void setTask(String task) {
		this.task = task;
	}
	
	public ShenQing getShenQing() {
		return shenQing;
	}

	public void setShenQing(ShenQing shenQing) {
		this.shenQing = shenQing;
	}	

	public YiJiao getYiJiao() {
		return yiJiao;
	}

	public void setYiJiao(YiJiao yiJiao) {
		this.yiJiao = yiJiao;
	}

	public WeiXiu getWeiXiu() {
		return weiXiu;
	}

	public void setWeiXiu(WeiXiu weiXiu) {
		this.weiXiu = weiXiu;
	}	

	public BaoFei getBaoFei() {
		return baoFei;
	}

	public void setBaoFei(BaoFei baoFei) {
		this.baoFei = baoFei;
	}	

	public WuZi getWuZi() {
		return wuZi;
	}

	public void setWuZi(WuZi wuZi) {
		this.wuZi = wuZi;
	}	

	public String getXinRenId() {
		return xinRenId;
	}

	public void setXinRenId(String xinRenId) {
		this.xinRenId = xinRenId;
	}

	public ToDo(String id, User user, HuanJie huanJie, Date createDate,
			String type, String task, ShenQing shenQing, YiJiao yiJiao,
			WeiXiu weiXiu, BaoFei baoFei, WuZi wuZi, String xinRenId) {
		super();
		this.id = id;
		this.user = user;
		this.huanJie = huanJie;
		this.createDate = createDate;
		this.type = type;
		this.task = task;
		this.shenQing = shenQing;
		this.yiJiao = yiJiao;
		this.weiXiu = weiXiu;
		this.baoFei = baoFei;
		this.wuZi = wuZi;
		this.xinRenId = xinRenId;
	}

	public ToDo() {
		super();
	}
}
